<%-- 
    Document   : VerDatosPersonales
    Created on : 31/03/2011, 10:25:05 PM
    Author     : Jhon
--%>

<%@page import="vo.VOUser"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="HTML.*"%>
<%@include file="CheckSession.jsp"%>
<% 
   HtmlBody b = new HtmlBody("Personal Information","");
   HtmlContent c = new HtmlContent("Personal Information");
   HtmlSideBar s = new HtmlSideBar(true);
   VOUser a = (VOUser) session.getAttribute("USER");
   if(a.isIsAdmin()){
  b.addUsuario(a.getHandle(), "Administrator");
    c.addDatosPersonales("600",a.getHandle(), a.getFirstName(), a.getLastName(), a.getEmail(),a.getInstitution(),a.getCountry());
   }else{
   b.addUsuario(a.getHandle(), "User");
   if(a.getTeam().isEmpty() || a.getTeam()==null)
   c.addDatosPersonales("600",a.getHandle(), a.getFirstName(), a.getLastName(), a.getEmail(),"none",a.getInstitution(),a.getCountry());
   else
   c.addDatosPersonales("600",a.getHandle(), a.getFirstName(), a.getLastName(), a.getEmail(),a.getTeam(),a.getInstitution(),a.getCountry());
   }

    b.addContent(c.getContent());
    b.addSideBar(s.getBar());
    %>

    <%=b.getHtml()%>
